package 策略模式.impl;

/**
 *
 */
public class Business {

    public static void main(String[] args) {

        Context context = new Context();

        context.setStrategy(new StrategyAddImpl());
        System.out.println(context.operate(2, 1));

        context.setStrategy(new StrategyDivideImpl());
        System.out.println(context.operate(2, 1));

    }

}
